<script setup lang="ts">
import freightManageDialog from '@/hooks/fun/freightManageDialog'
const props = withDefaults(defineProps<{
  dialogTableVisible?: boolean
  typeBtn?: string
}>(), {
})
</script>

<template>
  <el-dialog draggable width="600px" :model-value="props.dialogTableVisible"
    :title="props.typeBtn === 'add' ? '新增模板' : '编辑模板'" @close="$emit('close')" style="border-radius: 10px;">
    <el-form>
      <el-form-item label="模板类型">
        <el-select size="large" style="width: 100%;" placeholder="请选择模板类型">
          <el-option></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="运送类型">
        <el-select size="large" style="width: 100%;" placeholder="请选择运送类型">
          <el-option></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="关联城市">
        <span>全国</span>
      </el-form-item>
      <el-form-item label="首重价格">
        <el-input size="large" placeholder="请输入首重价格" class="yuan">
          <template #append>元</template>
        </el-input>
      </el-form-item>
      <el-form-item label="续重价格">
        <el-input size="large" placeholder="请输入续重价格" class="yuan">
          <template #append>元</template>
        </el-input>
      </el-form-item>
      <el-form-item label="轻抛系数">
        <el-input size="large" placeholder="请输入轻抛系数" />
      </el-form-item>
      <el-form-item style="justify-content: center;" class="operation">
        <el-row justify="center">
          <el-rol :span="7">
            <el-button color="#e15536" size="large">确认</el-button>
            <el-button size="large" @click="$emit('close')">取消</el-button>
          </el-rol>
        </el-row>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<style scoped lang="scss">
.el-form {
  margin: 30px;
}

::v-deep .yuan {
  .el-input__wrapper {
    box-shadow: none;
    border: 1px solid #dcdfe6;
    border-right: 0;
  }

  .el-input-group__append {
    background-color: #fff;
  }

}

.el-form-item {
  align-items: center;
}

::v-deep .operation {
  .el-form-item__content {
    justify-content: center;
  }
}
</style>